package com.hcb.micro.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.ProductCountMapper;
import com.hcb.micro.dto.ProductCount;
import com.hcb.micro.service.IProductCountService;

@Service("ProductCountService")
public class ProductCountServiceImpl implements IProductCountService {

	@Autowired
	ProductCountMapper pcm;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return pcm.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ProductCount record) {
		return pcm.insert(record);
	}

	@Override
	public int insertSelective(ProductCount record) {
		return pcm.insertSelective(record);
	}

	@Override
	public ProductCount selectByPrimaryKey(Integer id) {
		return pcm.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductCount record) {
		return pcm.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ProductCount record) {
		return pcm.updateByPrimaryKey(record);
	}

	@Override
	public ProductCount selectByProductId(Integer productId) {
		return pcm.selectByProductId(productId);
	}

}
